package com.allqj.sfx.ddd.member.application.dto;

import io.swagger.annotations.ApiModelProperty;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author sjw
 * @className FlowDefDTO
 * @date 2022/7/22 17:25
 * @description: 流程定义
 */
public class FlowDefDTO {
    private Integer id;
    @NotNull(message = "模块不能为空")
    @ApiModelProperty(value = "模块")
    private Integer moduleId;
    @NotNull(message = "功能不能为空")
    @ApiModelProperty(value = "功能")
    private Integer functionId;
    @ApiModelProperty(value = "备注")
    private String remark;

    @Valid
    @NotNull(message = "审批任务不能为空")
    @ApiModelProperty(value = "审批任务")
    private List<FlowTaskDefDTO> flowTaskDefs;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getModuleId() {
        return moduleId;
    }

    public void setModuleId(Integer moduleId) {
        this.moduleId = moduleId;
    }

    public Integer getFunctionId() {
        return functionId;
    }

    public void setFunctionId(Integer functionId) {
        this.functionId = functionId;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public List<FlowTaskDefDTO> getFlowTaskDefs() {
        return flowTaskDefs;
    }

    public void setFlowTaskDefs(List<FlowTaskDefDTO> flowTaskDefs) {
        this.flowTaskDefs = flowTaskDefs;
    }

    /**
     * 参数合法性校验
     */
    public void validate() {
    }
}
